-
Quick tip: Making files immutable on GNU/Linux
The other day, I was having some problems with Network Manager (I only ever have problems with it to be honest). It kept overwriting my /etc/resolv.conf — the file where you configure what nameservers your system will use. Even after I uninstalled Network Manger, on rebooot I would find my …
- On:
-
Magento tip: Set number of new products shown in CMS block
I am currently doing a redesign of the New Internationalist ethical shop’s home page. I just spent about 20 minutes trying to work out how to set the number of products that are displayed in the new products block when it is called from within a CMS page in Magento.If you’re in the …
- On:
-
Having SOAP::Lite or LWP::UserAgent skip SSL certificate verification
Wow. This was a two pipe problem. I just upgraded perl on one of our servers. We use a lot of SOAP::Lite calls here, which used to be fine. But all of a sudden all my lovely scripts say: 500 Can't connect to our.server.com:443 (certificate verify failed) at /usr/bin/myscript.pl line 28Now …
- On:
-
One liner: Find all javascript files used by a website
Just thought I’d document this as its likely to be the sort of thing that others might need. I was doing a bit of a tidyup of our javascript files on the global justice site New Internationalist and I needed to know which javascript files were still in use. Its a recursive grep for .js file …
- On:
-
Tip: Hassle Free Passwordless Remote SSH Login
There is plenty of other documentation of how to set up remote passwordless ssh logins elsewhere on the web. But it often takes some faffing to make it work as you'd like. Now, I often do this, so I thought I’d write up the easiest way that I’ve found to do so. It only has two steps. How …
- On:
-
HOWTO: Kazam ScreenCast Software on Dual Screen Debian Squeeze
Let’s start out by saying that there’s nowt wrong with gtkRecordMyDesktop as a screencasting tool. But it is a little old in the tooth, and perhaps suffers from an overly complex UI. So, I was interested to read Introducing a screencaster called Kazam, by andrew@thisblog, an ins …
- On:
-
Vimperator Tip: Cut and paste with ctrl—c/ctrl—v
I’m a huge fan of the Vimperator Firefox plugin. It works just like you'd want it to and doesn't break much. Well, it breaks one useful thing, which is the almost universal ctrl-c/ctrl-v cut and paste shortcuts. So, I was well chuffed to find a Vimperator cut and paste tip on superuser. I̵ …
- On:
-
Debian Tip: Get a list of all installed packages with dpkg
I like to make sure that I always have a listing of all the files I have on my Debian boxen. Fortunately dpkg has a quick way of doing just that. # dpkg --get-selections > /path/to/mybackup.txt I run that once a day or so as a cron job dumping to a file, that file will be in my usual rsync backup. …
- On:
-
Debian Tip: Get Adobe Air working on 64—bit Squeeze
Lots of people seem to want to develop applications on the decidedly unfree Adobe Air platform. They provide a .deb for 32 bit systems but not for 64 bit systems. I wanted to check out some software from the dark side, and took a while to suss out what the provided deb needed to make it run …
- On:
-
Config::General arrayrefs and HTML::FormFu
I’m in the process of making a nicer backend for charlieharvey.org.uk using Catalyst (which is lovely BTW). One of the things I’m playing with is using HTML::FormFu for making the forms. But this morning I got proper stuck on the simple task of populating a select box with options fro …
- On:
-
Making Sendmail use a relay even when not running the Sendmail daemon
This turned out to be a three pipe problem; all I wanted to do was not to run OpenBSD's send mail daemon, yet still be able to send mail from that box. It turns out that there's a simple answer in the post Improving Sendmail Securi …
- On: